package com.lizhi.yun.db.jlc.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/11/2 10:41
 */
@Setter
@Getter
@ToString
public class JlcTreatrecordPOJO {

    /*id*/
    private String id;

    /*patientinfo表中患者的id*/
    private String patientid;

    /*治疗类型，手动刺激或程控刺激*/
    private String treattype;

    /*治疗日期*/
    private String treatdate;

    /*治疗部位*/
    private String bodypart;

    /*刺激强度(%)*/
    private String intensity;

    /*刺激阈值(%)*/
    private String threshold;

    /*刺激频率*/
    private String frequency;

    /*连续刺激个数*/
    private String continuenum;

    /*两个连续刺激之间的时间间隔*/
    private String period;

    /*连续刺激的重复次数*/
    private String repeat;

    /*总刺激个数*/
    private String numall;

    /*已刺激个数*/
    private String numover;

    /*触发方式（外触发1-上升沿，2-下降沿）（内触发3-上升沿，4下降沿）*/
    private String trigger;

    private String triggerText;

    /*内触发延时（ms）*/
    private String delayed;

    /*00-未上传，01-已上传*/
    private String dateupstatus;

    /*数据上传到云管的时间*/
    private String datauptime;

    /*医院id*/
    private String hospitalid;

    /*系统编号*/
    private String hospitalsystemid;

    public String getTriggerText() {
        if ("1".equals(this.trigger)){
            this.triggerText = "外触发-上升沿";
        } else if ("2".equals(this.trigger)){
            this.triggerText = "外触发-下降沿";
        } else if ("3".equals(this.trigger)){
            this.triggerText = "内触发-上升沿";
        } else if ("4".equals(this.trigger)){
            this.triggerText = "内触发-下降沿";
        }
        return triggerText;
    }
}
